package com.logisticsrepair.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.logisticsrepair.entity.UserEntity;
import com.logisticsrepair.service.UserService;
import com.logisticsrepair.mapper.UserMapper;
import org.springframework.stereotype.Service;

/**
* @author anonymous
* @description 针对表【user(普通用】的数据库操作Service实现
* @createDate 2022-03-12 20:10:16
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity>
    implements UserService{

    @Override
    public UserEntity getByUsername(String username) {
        return this.lambdaQuery().eq(UserEntity::getUsername, username).one();
    }

}





